function times = trainingTimes(sMethod, f, sTrainingSet, eta)

for i = 1:1000
	success = true;
	for j = 1:100
		training(sMethod, sTrainingSet, f, i, eta);
		sqty = testNet(sMethod, f);
		if(sqty != 32)
			success = false;
		endif
	endfor
	if(success == true)
		times = i;
		return;
	endif
endfor
